package priv.work;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class GirlFriend {
	private String name;
	private Integer age;
	@Autowired
	private Villa villa;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public Villa getVilla() {
		return villa;
	}
	public void setVilla(Villa villa) {
		this.villa = villa;
	}
	@Override
	public String toString() {
		return "GirlFriend [name=" + name + ", age=" + age + ", villa=" + villa + "]";
	}
	public GirlFriend() {
		
	}
}
